﻿@model TenderSampleApp.Models.Profile.PhysicalUserProfileModel
@{
    ViewBag.Title = "FillUserProfile";
    <script src="/Scripts/FullAddressDatePicker.js" type="text/javascript"></script>

}
<h2>Заповніть профайл</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.Hidden("hdnreg")
    @Html.Hidden("hdndist")
    @Html.Hidden("hdncity")
     @Html.Hidden("hdnvalid", Session["userprofile"]==null?false:true)
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Профайл</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Lastname)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Lastname)
            @Html.ValidationMessageFor(model => model.Lastname)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.FirstName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Surname)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Surname)
            @Html.ValidationMessageFor(model => model.Surname)
        </div>
  
        <div class="editor-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Index)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Index)
            @Html.ValidationMessageFor(model => model.Index)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Region)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Region, new { @class = "region" })
            @Html.ValidationMessageFor(model => model.Region)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.District)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.District, new { @class = "district" })
            @Html.ValidationMessageFor(model => model.District)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.City, new { @class = "city" })
            @Html.ValidationMessageFor(model => model.City)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Street)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Street, new { @class = "street" })
            @Html.ValidationMessageFor(model => model.Street)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Build)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Build)
            @Html.ValidationMessageFor(model => model.Build)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Apartment)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Apartment)
            @Html.ValidationMessageFor(model => model.Apartment)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.BirthdayYear)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.BirthdayYear)
            @Html.ValidationMessageFor(model => model.BirthdayYear)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.CertificateSeries)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.CertificateSeries)
            @Html.ValidationMessageFor(model => model.CertificateSeries)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.NumberCertificate)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.NumberCertificate)
            @Html.ValidationMessageFor(model => model.NumberCertificate)
        </div>
                <div class="editor-label">
            @Html.LabelFor(model => model.DateOfIssueСertificate)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.DateOfIssueСertificate, new { @class = "datedoc" })
            @Html.ValidationMessageFor(model => model.CertificateSeries)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.CertificateIssueBy)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.CertificateIssueBy)
            @Html.ValidationMessageFor(model => model.CertificateIssueBy)
        </div>
 
        <p>
       
 
            <input type="submit" value='Далі' />
      
             
            
        </p>
    </fieldset>
}
 
